# 版本信息
FROM centos:7
MAINTAINER yuxinhai <iamnewsea@163.com>

ADD jdk1.8.0_241 /opt/jdk1.8.0_241

# 设置环境变量
ENV JAVA_HOME /opt/jdk1.8.0_241
ENV PATH $PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin
ENV TIME_ZONE Asia/Shanghai

# 更改时区
RUN set -x \
    && echo "${TIME_ZONE}" > /etc/timezone \
    && ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime

VOLUME /data
EXPOSE 80
